package com.atguigu.gulimall.search.vo;

import com.atguigu.common.to.SkuEsModel;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class SearchResult {
    private List<SkuEsModel> products;
    private Integer pageNum;
    private Long total;
    private Integer totalPages;
    private List<BrandVO> brands;
    private List<CatalogVO> catalogs;
    private List<AttrVo> attrs;
//    private List<Integer> pageNavs;
    @Data
    public static class BrandVO{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }
    private List<NavVo> navs=new ArrayList<>();
    private List<Long> attrIds=new ArrayList<>();
    @Data
    public static class NavVo{
        private String navName;
        private String navValue;
        private String link;
    }
    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
    @Data
    public static class CatalogVO{
        private Long catalogId;
        private String catalogName;
        private String brandImg;
    }
}
